package io;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class OSDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("sos.txt");
        OutputStreamWriter sos=new OutputStreamWriter(fos,StandardCharsets.UTF_8);
        sos.write("刘思甜是个帅哥");
        sos.write("是个大帅逼");
        System.out.println("写出完毕");
        sos.close();
    }
}
